package com.homework.note.Model;

import com.homework.note.Model.Enum.StatusType;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.xml.soap.Text;
import java.util.Date;

/**
 * @author htyu
 * @date 2019/3/9
 */
@Data
@Document
public class Notebook {

    /**
     *笔记本id
     */
    @Id
    private String id;

    /**
     *用户id
     */
    private String userID;

    /**
     *父类id
     */
    private String fatherID;

    /**
     *笔记本名称
     */
    private String bookName;

    /**
     *笔记本状态
     */
    private StatusType status;

    /**
     *笔记本创建时间
     */
    private Date createTime;
}
